import { createMemoryHistory, createRouter } from 'vue-router'

const routes = [
  { path: '/', component: () => import('@/views/LoginPage.vue') },
  { path: '/RegisterPage', component:() => import('@/views/RegisterPage.vue') },
  { path: '/HomePage', component: () => import('@/views/HomePage.vue') },
  { path: '/CreateQN', component: () => import('@/views/CreateQN.vue'),
    children:[
      {path:'ChoiceQues',component:() => import('@/components/ChoiceQues.vue')},
      {path:'ScoreQues',component:() => import('@/components/ScoreQues.vue')},
      {path:'FillQues',component:() => import('@/components/FillQues.vue')},
      {path:'SortQues',component:() => import('@/components/SortQues.vue')},
    ]
   },
]

const router = createRouter({
  history: createMemoryHistory(),
  routes,
})

export default router